<template>
	<!-- 弹出的规格窗口 -->
	<view class="pop_sku">
		<uni-popup ref="popup" type="center">底部弹出 Popup</uni-popup>
	</view>
</template>

<script>
	import uniPopup from '../uni-popup/uni-popup.vue'
	export default {
		components:{
			uniPopup
		},
		data(){
			return{
				shows: true
			}
		},
		watch:{
			shows(){
				this.mounted()
			}
		},
		methods:{
			openPop(){
				if(this.shows == true){
					this.$refs.popup.open()
				}else{
					this.$refs.popup.close()
				}
			}
		}
	}
</script>

<style>
</style>
